import Layout from '@/layout'
import twoLayout from '@/twoLayout'

export default {
  path: '/dataMaintenance',
  name: 'dataMaintenance',
  redirect: '/dataMaintenance/personnelInformation',
  component: Layout,
  alwaysShow: true,
  meta: {
    title: '基础数据维护',
    roles: ['admin'],
    icon: 'excel'
  },
  children: [
    {
      path: 'personnelInformation',
      name: 'personnelInformation',
      redirect: '/personnelInformation/staff',
      alwaysShow: true,
      component: twoLayout,
      meta: {
        title: '人员信息维护'
      },
      children: [
        {
          path: 'staff',
          name: 'staff',
          component: () => import(/* webpackChunkName: "PersonnelInformationStaff" */'@/views/DataMaintenance/PersonnelInformation/Staff'),
          meta: {
            title: '员工管理'
          }
        },
        {
          path: 'department',
          name: 'department',
          component: () => import(/* webpackChunkName: "PersonnelInformationDepartment" */'@/views/DataMaintenance/PersonnelInformation/Department'),
          meta: {
            title: '部门管理'
          }
        },
        {
          path: 'position',
          name: 'position',
          component: () => import(/* webpackChunkName: "PersonnelInformationPosition" */'@/views/DataMaintenance/PersonnelInformation/Position'),
          meta: {
            title: '职位管理'
          }
        },
        {
          path: 'typeOfWork',
          name: 'typeOfWork',
          component: () => import(/* webpackChunkName: "PersonnelInformationTypeOfWork" */'@/views/DataMaintenance/PersonnelInformation/TypeOfWork'),
          meta: {
            title: '工种管理'
          }
        },
        {
          path: 'vehicleManagement',
          name: 'vehicleManagement',
          component: () => import(/* webpackChunkName: "PersonnelInformationTypeOfWork" */'@/views/DataMaintenance/PersonnelInformation/VehicleManagement'),
          meta: {
            title: '车辆管理'
          }
        }
      ]
    },
    {
      path: 'siteInformation',
      name: 'siteInformation',
      redirect: '/siteInformation/region',
      alwaysShow: true,
      component: twoLayout,
      meta: {
        title: '工点信息维护'
      },
      children: [
        {
          path: 'region',
          name: 'region',
          component: () => import(/* webpackChunkName: "SiteInformationRegion" */'@/views/DataMaintenance/SiteInformation/Region'),
          meta: {
            title: '区域管理'
          }
        },
        {
          path: 'sitePositioning',
          name: 'sitePositioning',
          component: () => import(/* webpackChunkName: "SiteInformationSitePositioning" */'@/views/DataMaintenance/SiteInformation/SitePositioning'),
          meta: {
            title: '工点信息'
          }
        },
        {
          path: 'deviceImageSettings',
          name: 'deviceImageSettings',
          component: () => import(/* webpackChunkName: "SiteInformationSitePositioning" */'@/views/DataMaintenance/SiteInformation/deviceImageSettings'),
          meta: {
            title: '设备图像设置'
          }
        }
      ]
    },
    {
      path: 'attendance',
      name: 'attendance',
      component: () => import(/* webpackChunkName: "AttendanceRule" */'@/views/DataMaintenance/Attendance'),
      meta: {
        title: '考勤设置'
      },
      // children: [
      //   {
      //     path: 'mode',
      //     name: 'mode',
      //     component: () => import(/* webpackChunkName: "AttendanceMode" */'@/views/DataMaintenance/Attendance/Mode'),
      //     meta: {
      //       title: '考勤方式'
      //     }
      //   },
      //   {
      //     path: 'rule',
      //     name: 'rule',
      //     component: () => import(/* webpackChunkName: "AttendanceRule" */'@/views/DataMaintenance/Attendance/Rule'),
      //     meta: {
      //       title: '考勤规则'
      //     }
      //   }
      // ]
    }
  ]
}
